<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>model</title>
    <script src="https://unpkg.com/vue"></script>
    <script src="https://cdn.bootcss.com/vue-resource/1.3.4/vue-resource.min.js"></script>
</head>
<body>
<div id="app">
    <input type="button" value="get" @click="getInfo">
</div>

</body>
<script>
var vm = new Vue({
    el: '#app',
    data: {
        msg: '大家好哈哈哈哈，你们好啊。'
    },
    methods:{
        getInfo(){
            this.$http.get('http://vue.studyit.io/api/getlunbo').then(function(result){
                console.log(result);
            });
        }
    }

})
</script>
</html>